package com.mall.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause(String created_time) {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }


    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoods_idIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoods_idIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoods_idEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idLessThan(Integer value) {
            addCriterion("goods_id <", value, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goods_id");
            return (Criteria) this;
        }

        public Criteria andGoods_idNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goods_id");
            return (Criteria) this;
        }

        public Criteria andCat_idIsNull() {
            addCriterion("cat_id is null");
            return (Criteria) this;
        }

        public Criteria andCat_idIsNotNull() {
            addCriterion("cat_id is not null");
            return (Criteria) this;
        }

        public Criteria andCat_idEqualTo(Integer value) {
            addCriterion("g.cat_id =", value, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idNotEqualTo(Integer value) {
            addCriterion("cat_id <>", value, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idGreaterThan(Integer value) {
            addCriterion("cat_id >", value, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("cat_id >=", value, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idLessThan(Integer value) {
            addCriterion("cat_id <", value, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idLessThanOrEqualTo(Integer value) {
            addCriterion("cat_id <=", value, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idIn(List<Integer> values) {
            addCriterion("cat_id in", values, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idNotIn(List<Integer> values) {
            addCriterion("cat_id not in", values, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idBetween(Integer value1, Integer value2) {
            addCriterion("cat_id between", value1, value2, "cat_id");
            return (Criteria) this;
        }

        public Criteria andCat_idNotBetween(Integer value1, Integer value2) {
            addCriterion("cat_id not between", value1, value2, "cat_id");
            return (Criteria) this;
        }

        public Criteria andGoods_nameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoods_nameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoods_nameEqualTo(String value) {
            addCriterion("goods_name =", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameLessThan(String value) {
            addCriterion("goods_name <", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameLike(String value) {
            addCriterion("goods_name like", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameNotLike(String value) {
            addCriterion("goods_name not like", value, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameIn(List<String> values) {
            addCriterion("goods_name in", values, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_nameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goods_name");
            return (Criteria) this;
        }

        public Criteria andGoods_priceIsNull() {
            addCriterion("goods_price is null");
            return (Criteria) this;
        }

        public Criteria andGoods_priceIsNotNull() {
            addCriterion("goods_price is not null");
            return (Criteria) this;
        }

        public Criteria andGoods_priceEqualTo(BigDecimal value) {
            addCriterion("goods_price =", value, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceNotEqualTo(BigDecimal value) {
            addCriterion("goods_price <>", value, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceGreaterThan(BigDecimal value) {
            addCriterion("goods_price >", value, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("goods_price >=", value, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceLessThan(BigDecimal value) {
            addCriterion("goods_price <", value, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("goods_price <=", value, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceIn(List<BigDecimal> values) {
            addCriterion("goods_price in", values, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceNotIn(List<BigDecimal> values) {
            addCriterion("goods_price not in", values, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goods_price between", value1, value2, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_priceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goods_price not between", value1, value2, "goods_price");
            return (Criteria) this;
        }

        public Criteria andGoods_numberIsNull() {
            addCriterion("goods_number is null");
            return (Criteria) this;
        }

        public Criteria andGoods_numberIsNotNull() {
            addCriterion("goods_number is not null");
            return (Criteria) this;
        }

        public Criteria andGoods_numberEqualTo(Integer value) {
            addCriterion("goods_number =", value, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberNotEqualTo(Integer value) {
            addCriterion("goods_number <>", value, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberGreaterThan(Integer value) {
            addCriterion("goods_number >", value, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_number >=", value, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberLessThan(Integer value) {
            addCriterion("goods_number <", value, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberLessThanOrEqualTo(Integer value) {
            addCriterion("goods_number <=", value, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberIn(List<Integer> values) {
            addCriterion("goods_number in", values, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberNotIn(List<Integer> values) {
            addCriterion("goods_number not in", values, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberBetween(Integer value1, Integer value2) {
            addCriterion("goods_number between", value1, value2, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_numberNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_number not between", value1, value2, "goods_number");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoIsNull() {
            addCriterion("goods_big_logo is null");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoIsNotNull() {
            addCriterion("goods_big_logo is not null");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoEqualTo(String value) {
            addCriterion("goods_big_logo =", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoNotEqualTo(String value) {
            addCriterion("goods_big_logo <>", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoGreaterThan(String value) {
            addCriterion("goods_big_logo >", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoGreaterThanOrEqualTo(String value) {
            addCriterion("goods_big_logo >=", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoLessThan(String value) {
            addCriterion("goods_big_logo <", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoLessThanOrEqualTo(String value) {
            addCriterion("goods_big_logo <=", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoLike(String value) {
            addCriterion("goods_big_logo like", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoNotLike(String value) {
            addCriterion("goods_big_logo not like", value, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoIn(List<String> values) {
            addCriterion("goods_big_logo in", values, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoNotIn(List<String> values) {
            addCriterion("goods_big_logo not in", values, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoBetween(String value1, String value2) {
            addCriterion("goods_big_logo between", value1, value2, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_big_logoNotBetween(String value1, String value2) {
            addCriterion("goods_big_logo not between", value1, value2, "goods_big_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoIsNull() {
            addCriterion("goods_small_logo is null");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoIsNotNull() {
            addCriterion("goods_small_logo is not null");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoEqualTo(String value) {
            addCriterion("goods_small_logo =", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoNotEqualTo(String value) {
            addCriterion("goods_small_logo <>", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoGreaterThan(String value) {
            addCriterion("goods_small_logo >", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoGreaterThanOrEqualTo(String value) {
            addCriterion("goods_small_logo >=", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoLessThan(String value) {
            addCriterion("goods_small_logo <", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoLessThanOrEqualTo(String value) {
            addCriterion("goods_small_logo <=", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoLike(String value) {
            addCriterion("goods_small_logo like", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoNotLike(String value) {
            addCriterion("goods_small_logo not like", value, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoIn(List<String> values) {
            addCriterion("goods_small_logo in", values, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoNotIn(List<String> values) {
            addCriterion("goods_small_logo not in", values, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoBetween(String value1, String value2) {
            addCriterion("goods_small_logo between", value1, value2, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andGoods_small_logoNotBetween(String value1, String value2) {
            addCriterion("goods_small_logo not between", value1, value2, "goods_small_logo");
            return (Criteria) this;
        }

        public Criteria andCat_one_idIsNull() {
            addCriterion("cat_one_id is null");
            return (Criteria) this;
        }

        public Criteria andCat_one_idIsNotNull() {
            addCriterion("cat_one_id is not null");
            return (Criteria) this;
        }

        public Criteria andCat_one_idEqualTo(Integer value) {
            addCriterion("cat_one_id =", value, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idNotEqualTo(Integer value) {
            addCriterion("cat_one_id <>", value, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idGreaterThan(Integer value) {
            addCriterion("cat_one_id >", value, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("cat_one_id >=", value, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idLessThan(Integer value) {
            addCriterion("cat_one_id <", value, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idLessThanOrEqualTo(Integer value) {
            addCriterion("cat_one_id <=", value, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idIn(List<Integer> values) {
            addCriterion("cat_one_id in", values, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idNotIn(List<Integer> values) {
            addCriterion("cat_one_id not in", values, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idBetween(Integer value1, Integer value2) {
            addCriterion("cat_one_id between", value1, value2, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_one_idNotBetween(Integer value1, Integer value2) {
            addCriterion("cat_one_id not between", value1, value2, "cat_one_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idIsNull() {
            addCriterion("cat_two_id is null");
            return (Criteria) this;
        }

        public Criteria andCat_two_idIsNotNull() {
            addCriterion("cat_two_id is not null");
            return (Criteria) this;
        }

        public Criteria andCat_two_idEqualTo(Integer value) {
            addCriterion("cat_two_id =", value, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idNotEqualTo(Integer value) {
            addCriterion("cat_two_id <>", value, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idGreaterThan(Integer value) {
            addCriterion("cat_two_id >", value, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("cat_two_id >=", value, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idLessThan(Integer value) {
            addCriterion("cat_two_id <", value, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idLessThanOrEqualTo(Integer value) {
            addCriterion("cat_two_id <=", value, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idIn(List<Integer> values) {
            addCriterion("cat_two_id in", values, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idNotIn(List<Integer> values) {
            addCriterion("cat_two_id not in", values, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idBetween(Integer value1, Integer value2) {
            addCriterion("cat_two_id between", value1, value2, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_two_idNotBetween(Integer value1, Integer value2) {
            addCriterion("cat_two_id not between", value1, value2, "cat_two_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idIsNull() {
            addCriterion("cat_three_id is null");
            return (Criteria) this;
        }

        public Criteria andCat_three_idIsNotNull() {
            addCriterion("cat_three_id is not null");
            return (Criteria) this;
        }

        public Criteria andCat_three_idEqualTo(Integer value) {
            addCriterion("cat_three_id =", value, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idNotEqualTo(Integer value) {
            addCriterion("cat_three_id <>", value, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idGreaterThan(Integer value) {
            addCriterion("cat_three_id >", value, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("cat_three_id >=", value, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idLessThan(Integer value) {
            addCriterion("cat_three_id <", value, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idLessThanOrEqualTo(Integer value) {
            addCriterion("cat_three_id <=", value, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idIn(List<Integer> values) {
            addCriterion("cat_three_id in", values, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idNotIn(List<Integer> values) {
            addCriterion("cat_three_id not in", values, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idBetween(Integer value1, Integer value2) {
            addCriterion("cat_three_id between", value1, value2, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andCat_three_idNotBetween(Integer value1, Integer value2) {
            addCriterion("cat_three_id not between", value1, value2, "cat_three_id");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andCreated_timeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreated_timeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreated_timeEqualTo(Date value) {
            addCriterion("created_time =", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeGreaterThan(Date value) {
            addCriterion("created_time >", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeLessThan(Date value) {
            addCriterion("created_time <", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeIn(List<Date> values) {
            addCriterion("created_time in", values, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "created_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeEqualTo(Date value) {
            addCriterion("update_time =", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeGreaterThan(Date value) {
            addCriterion("update_time >", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeLessThan(Date value) {
            addCriterion("update_time <", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeIn(List<Date> values) {
            addCriterion("update_time in", values, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "update_time");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}